package com.ruoyi.demo.service.impl;

import com.ruoyi.demo.dao.HotelDocDao;
import com.ruoyi.demo.pojo.doc.HotelDoc;
import com.ruoyi.demo.pojo.dto.PageResult;
import com.ruoyi.demo.pojo.vo.HotelSearchFormVO;
import com.ruoyi.demo.service.HotelSearchService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class HotelSearchServiceImpl implements HotelSearchService {
    @Autowired
    private HotelDocDao hotelDocDao;

    @Override
    public PageResult<HotelDoc> searchHotel(HotelSearchFormVO searchFormVO) {
        return hotelDocDao.search(searchFormVO);
    }
}
